package com.ruoyi.st.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.st.mapper.StTicketDateMapper;
import com.ruoyi.st.domain.StTicketDate;
import com.ruoyi.st.service.IStTicketDateService;

/**
 * 票面日期Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class StTicketDateServiceImpl implements IStTicketDateService 
{
    @Autowired
    private StTicketDateMapper stTicketDateMapper;

    /**
     * 查询票面日期
     * 
     * @param id 票面日期主键
     * @return 票面日期
     */
    @Override
    public StTicketDate selectStTicketDateById(Long id)
    {
        return stTicketDateMapper.selectStTicketDateById(id);
    }

    /**
     * 查询票面日期列表
     * 
     * @param stTicketDate 票面日期
     * @return 票面日期
     */
    @Override
    public List<StTicketDate> selectStTicketDateList(StTicketDate stTicketDate)
    {
        return stTicketDateMapper.selectStTicketDateList(stTicketDate);
    }

    /**
     * 新增票面日期
     * 
     * @param stTicketDate 票面日期
     * @return 结果
     */
    @Override
    public int insertStTicketDate(StTicketDate stTicketDate)
    {
        return stTicketDateMapper.insertStTicketDate(stTicketDate);
    }

    /**
     * 修改票面日期
     * 
     * @param stTicketDate 票面日期
     * @return 结果
     */
    @Override
    public int updateStTicketDate(StTicketDate stTicketDate)
    {
        return stTicketDateMapper.updateStTicketDate(stTicketDate);
    }

    /**
     * 批量删除票面日期
     * 
     * @param ids 需要删除的票面日期主键
     * @return 结果
     */
    @Override
    public int deleteStTicketDateByIds(Long[] ids)
    {
        return stTicketDateMapper.deleteStTicketDateByIds(ids);
    }

    /**
     * 删除票面日期信息
     * 
     * @param id 票面日期主键
     * @return 结果
     */
    @Override
    public int deleteStTicketDateById(Long id)
    {
        return stTicketDateMapper.deleteStTicketDateById(id);
    }
}
